doctype
html
	head
		meta(charset="utf-8")
		title #{title}
		link(href="/css/admin.css",rel="stylesheet")
	body.sub-body
		.pos-rlt.p-md
			span 首页
			em >
			span 友情连接
		.p-md.m-top
			.panel.panel-default
				.panel-body
					.tab_t
						span.a.active 友情连接
					.targetSearch
					button#addlink.btn.m-r10.btn-sm.btn-success 添加连接
				table.table.table-striped
					thead
						tr
							th.t-c(width="18")
							th.t-l(width="350") 名称
							th.t-c 排序
							th.t-c 连接
							th.t-c(width="150") 操作
					tbody#datalist
						if friendlylink == ''
							tr.ng-scope
								td(rowspan="1",colspan="5")
									.nolist 暂时找不到连接列表
						each item in friendlylink
							tr.ng-scope
								td.ng-binding
										label.ui-checks
											input(type="checkbox",value="#{item._id}")
											i.ti-check
								td.ng-binding  #{item.name}
								td.ng-binding.t-c #{item.sort}
									td.ng-binding.t-c #{item.Link}
								td.ng-binding
									.operation
										a.edit(href="javascript:;",data-json="#{item._id},#{item.name},#{item.sort},#{item.Link}") 修改
										em.mar
										a.delete(href="javascript:;" data-id="#{item._id}") 删除

				.table-page
					.pull-left
						.checkbox
							label.ui-checks
								input#all(type="checkbox")
								i
								em 全选
						button.btn.btn-sm.btn-danger.alldelete(action="links") 批量删除
					.pull-right.page-box
						.pagination-info 共有#{pagesise}条，每页显示20条
						!{laypage}
		.varsion-box.hide
			.pane-body.varsion-alert(style="width:370px;height:200px")
				.form-group.m-h-n.clearfix
					label.col-sm-2.control-label 名称:
					.col-sm-9
						input#CateName.form-control(type="text",name="name")
				.form-group.m-h-n.clearfix
					label.col-sm-2.control-label 排序:
					.col-sm-9
						input#Alias.form-control(type="number",name="sort")
				.form-group.m-h-n.clearfix
					label.col-sm-2.control-label 连接:
					.col-sm-9
						input#Link.form-control(type="text",name="Link")
				.form-group.m-h-n.clearfix
					label.col-sm-2.control-label
					.col-sm-5
						button#ok_creative.btn.btn-sm.btn-danger 确定
		input(type="hidden" id="categoryId" name="_id")
				
		script(src="http://cdn.bootcss.com/jquery/2.2.0/jquery.min.js",type="text/javascript")
		script(src="/js/adminBase.js",type="text/javascript")
		script(src="/js/link.js",type="text/javascript")
